<template>
  <div class="jiegou">
    <van-nav-bar
      title="我的"
      left-text=""
      left-arrow
      @click-left="$router.back()"
    />
    <div class="profile" @click="$router.push('/login')">
      <img
        src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic3.zhimg.com%2F50%2Fv2-5095f9e4ef2c7eea1b768b5647eebb42_hd.jpg&refer=http%3A%2F%2Fpic3.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1634615556&t=3a26df063aa32be4ca4070d11aeacba1"
      />
      <div class="profile-center">
        <div class="name">
          <span>登录/注册</span>
        </div>
        <div class="time"><van-icon name="phone" />暂无绑定手机号</div>
      </div>
      <div class="right">
        <van-icon name="arrow" />
      </div>
    </div>
    <div class="fuqin">
      <span><i class="chen">0.00</i>元<br />我的余额</span>
      <span><i class="hong">0</i>个<br />我的优惠</span>
      <span><i class="lv">0</i>分<br />我的积分</span>
    </div>
    <div class="content">
      <van-cell icon="coupon-o" color="red" title="我的订单" is-link />
      <van-cell icon="bag-o" title="积分商城" is-link />
      <van-cell class="elm" icon="vip-card-o" title="饿了么会员卡" is-link />
      <div class="bot">
        <van-cell icon="smile" title="服务中心" is-link />
        <van-cell icon="stop-circle" title="下载饿了么APP" is-link />
      </div>
    </div>
    <footerNav></footerNav>
  </div>
</template>

<script>
import footerNav from "@/components/footer.vue";
import { uersInfo } from "@/api/user.js";
export default {
  components: {
    footerNav,
  },
  data() {
    return {
      userInfo: {},
    };
  },
  created() {
    uersInfo().then((res) => {
      console.log(38, res);
    });
  },
};
</script>

<style lang="less" scoped>
.van-nav-bar {
  background-color: #3190e8;
  border-bottom: 0px solid #fff;
}
/deep/.van-nav-bar__title {
  color: #fff;
  font-size: 18px;
}
/deep/.van-icon-arrow-left::before {
  color: #fff;
  font-size: 18px;
}
/deep/.van-icon-coupon-o::before {
  color: #000;
}
/deep/.van-icon-bag-o::before {
  color: red;
}
/deep/.van-icon-vip-card-o::before {
  color: #fc8712;
}
/deep/.van-icon-smile::before {
  color: pink;
}
/deep/.van-icon-stop-circle::before {
  color: #4aa6f1;
}
img {
  width: (50 / 360) * 100vw;
  height: (50 / 360) * 100vw;
  border-radius: 50%;
  margin-left: 30px;
}
.profile {
  display: flex;
  padding: 20px 10px;
  justify-content: space-between;
  align-items: center;
  background-color: #3190e8;

  .profile-center {
    flex: 1;
    padding: 0 10px;
    margin-left: 20px;
  }

  .name {
    span {
      color: #fff;
      margin-bottom: 10px;
    }
  }

  .time {
    color: #fff;
    font-size: 12px;
    margin-top: 5px;
    .van-icon {
      font-size: 12px;
      margin-right: 5px;
    }
  }
}
.fuqin {
  display: flex;
  height: 65px;
  border-bottom: 10px solid #f5f5f5;
  justify-content: space-evenly;
  padding-top: 16px;
  i {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .chen {
    color: orange;
  }
  .hong {
    color: red;
  }
  .lv {
    color: green;
  }
  span {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f5f5f5;
    line-height: 24px;
  }
}
.jiantou {
  font-size: 20px;
  color: #fff;
}
/deep/.content {
  .van-icon {
    color: #6c6c6c;
  }
}
.bot {
  border-top: 10px solid #f5f5f5;
}
.right {
  color: #ffff;
}
</style>